<template>
    <div id="app">
        <router-view />
    </div>
</template>

<script>
export default {
    created() {
        //移除初始加载动画
        // let ready = document.querySelector('#pageReadyBox[role="vueAlainReady"]');
        // if(ready && ready.parentNode) {
        //     ready.parentNode.removeChild(ready)
        //     ready = null
        // }

        //初始化element-ui主题
        const theme = localStorage.getItem('voThemeColor');
        const { themeInstance } = this.$root;
        if(themeInstance) {
            themeInstance.init(theme)
        }
    },
}
</script>

<style>

</style>